<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素显示模式转换</title>
    <style>
        a {
            width: 150px;
            height: 90px;
            background-color: pink;
            /*行内元素a转换为块级元素*/
            display: block;
        }

        div {
            width: 150px;
            height: 90px;
            background-color: red;
            /*把块级元素转换为行内元素*/
            display: inline;
        }

        span {
            width: 150px;
            height: 90px;
            background-color: blueviolet;
            /*转换为行内块*/
            display: inline-block;
        }

    </style>
</head>
<body>
<a href="">苹果手机</a>
<a href="">华为手机</a>

<div>小米手机</div>
<div>三星手机</div>

<span>vivo手机</span>
<span>OPPO手机</span>

</body>
</html>